#include<stdio.h> 
int main()
{
	void inv(int x[],int n);
	int i,a[10]={2,3,5,6,7,8,9,4,6,7};
	printf("the original array:\n");
	for(i=0;i<10;i++)
	printf("%d",a[i]);
	printf("\n");
	inv(a,10);
	printf("the array has been inverted:\n");
	for(i=0;i<10;i++);
	printf("%d",a[i]);
	return 0;
}
    void inv(int x[],int n)
    {
    	int temp,i,j,m=(n-1)/2;
    	for(i=0;i<=m;i++)
    	{
		j=n-1-i;
		temp=x[i];x[i]=x[j];x[j]=temp;
}
return;
	}
